package jicheng1;

public class Hamster extends Pet{
    public Hamster(String name, int helth, int love, String sex) {
        super(name, helth, love, sex);
    }
    public void print(){
        System.out.println("这是一只仓鼠");
        super.print();
    }
    public void bite(){
        System.out.println("仓鼠"+getName()+"正在啃桌腿");
    }
}
